<!DOCTYPE html>
<html lang="cn">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>cjdoc</title>
</head>

<body>
<div class="header">
<h2>package qt.widgets</h2>
</div>

<div class="header">
<h2 title="类 QWidget" class="title">类 QWidget</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public open <span class="typeNameLabel">QWidget</span>
extends QObject</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span>所有方法</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#init">init</a></span>()</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#init">init</a></span>(parent: QWidget)</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#init">init</a></span>(ptr: Int64)</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setFixedSize">setFixedSize</a></span>(w: Int64, h: Int64)</code>
<div class="block">The Function is setFixedSize</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#resize">resize</a></span>(w: Int64, h: Int64)</code>
<div class="block">The Function is resize</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#show">show</a></span>()</code>
<div class="block">The Function is show</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#hide">hide</a></span>()</code>
<div class="block">The Function is hide</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#showMinimized">showMinimized</a></span>()</code>
<div class="block">The Function is showMinimized</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#showMaximized">showMaximized</a></span>()</code>
<div class="block">The Function is showMaximized</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#showFullScreen">showFullScreen</a></span>()</code>
<div class="block">The Function is showFullScreen</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#showNormal">showNormal</a></span>()</code>
<div class="block">The Function is showNormal</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#close">close</a></span>()</code>
<div class="block">The Function is close</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#move">move</a></span>(ax: Int32, ay: Int32)</code>
<div class="block">The Function is move</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setWindowTitle">setWindowTitle</a></span>(title: String)</code>
<div class="block">The Function is setWindowTitle</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setLayout">setLayout</a></span>(layout: QLayout)</code>
<div class="block">The Function is setLayout</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setPalette">setPalette</a></span>(palette: QPalette)</code>
<div class="block">The Function is setPalette</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setAutoFillBackground">setAutoFillBackground</a></span>(enabled: Bool)</code>
<div class="block">The Function is setAutoFillBackground</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setGeometry">setGeometry</a></span>(ax: Int32, ay: Int32, aw: Int32, ah: Int32)</code>
<div class="block">The Function is setGeometry</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setFont">setFont</a></span>(font: QFont)</code>
<div class="block">The Function is setFont</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setStyleSheel">setStyleSheel</a></span>(styleSheet: String)</code>
<div class="block">The Function is setStyleSheel</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setWindowIcon">setWindowIcon</a></span>(icon: QIcon)</code>
<div class="block">The Function is setWindowIcon</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  QRect</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#rect">rect</a></span>()</code>
<div class="block">The Function is rect</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#repaint">repaint</a></span>()</code>
<div class="block">The Function is repaint</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#delete">delete</a></span>()</code>
<div class="block">The Function is delete</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setPaintEvent">setPaintEvent</a></span>(callback: (QPaintersEvent)->Unit)</code>
<div class="block">The Function is setPaintEvent</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setMousePressEvent">setMousePressEvent</a></span>(callback: (QMouseEvent)->Unit)</code>
<div class="block">The Function is setMousePressEvent</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setMouseReleaseEvent">setMouseReleaseEvent</a></span>(callback: (QMouseEvent)->Unit)</code>
<div class="block">The Function is setMouseReleaseEvent</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setMouseMoveEvent">setMouseMoveEvent</a></span>(callback: (QMouseEvent)->Unit)</code>
<div class="block">The Function is setMouseMoveEvent</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.widget.html#setKeyPressEvent">setKeyPressEvent</a></span>(callback: (QKeyEvent)->Unit)</code>
<div class="block">The Function is setKeyPressEvent</div>
</td>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>方法详细资料</h3>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>
</dl>
</li>
</ul>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(parent: QWidget): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>parent</code> - of QWidget</dd>
</dl>
</li>
</ul>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(ptr: Int64): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>ptr</code> - of Int64</dd>
</dl>
</li>
</ul>
<a name="setFixedSize">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFixedSize</h4>
<pre>public  setFixedSize(w: Int64, h: Int64): Unit</pre>
<div class="block">The Function is setFixedSize</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>w</code> - of Int64</dd>

<dd><code>h</code> - of Int64</dd>
</dl>
</li>
</ul>
<a name="resize">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resize</h4>
<pre>public  resize(w: Int64, h: Int64): Unit</pre>
<div class="block">The Function is resize</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>w</code> - of Int64</dd>

<dd><code>h</code> - of Int64</dd>
</dl>
</li>
</ul>
<a name="show">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>show</h4>
<pre>public  show(): Unit</pre>
<div class="block">The Function is show</div>
<dl>
</dl>
</li>
</ul>
<a name="hide">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hide</h4>
<pre>public  hide(): Unit</pre>
<div class="block">The Function is hide</div>
<dl>
</dl>
</li>
</ul>
<a name="showMinimized">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>showMinimized</h4>
<pre>public  showMinimized(): Unit</pre>
<div class="block">The Function is showMinimized</div>
<dl>
</dl>
</li>
</ul>
<a name="showMaximized">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>showMaximized</h4>
<pre>public  showMaximized(): Unit</pre>
<div class="block">The Function is showMaximized</div>
<dl>
</dl>
</li>
</ul>
<a name="showFullScreen">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>showFullScreen</h4>
<pre>public  showFullScreen(): Unit</pre>
<div class="block">The Function is showFullScreen</div>
<dl>
</dl>
</li>
</ul>
<a name="showNormal">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>showNormal</h4>
<pre>public  showNormal(): Unit</pre>
<div class="block">The Function is showNormal</div>
<dl>
</dl>
</li>
</ul>
<a name="close">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public  close(): Unit</pre>
<div class="block">The Function is close</div>
<dl>
</dl>
</li>
</ul>
<a name="move">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>move</h4>
<pre>public  move(ax: Int32, ay: Int32): Unit</pre>
<div class="block">The Function is move</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>ax</code> - of Int32</dd>

<dd><code>ay</code> - of Int32</dd>
</dl>
</li>
</ul>
<a name="setWindowTitle">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWindowTitle</h4>
<pre>public  setWindowTitle(title: String): Unit</pre>
<div class="block">The Function is setWindowTitle</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>title</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setLayout">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLayout</h4>
<pre>public  setLayout(layout: QLayout): Unit</pre>
<div class="block">The Function is setLayout</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>layout</code> - of QLayout</dd>
</dl>
</li>
</ul>
<a name="setPalette">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPalette</h4>
<pre>public  setPalette(palette: QPalette): Unit</pre>
<div class="block">The Function is setPalette</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>palette</code> - of QPalette</dd>
</dl>
</li>
</ul>
<a name="setAutoFillBackground">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAutoFillBackground</h4>
<pre>public  setAutoFillBackground(enabled: Bool): Unit</pre>
<div class="block">The Function is setAutoFillBackground</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>enabled</code> - of Bool</dd>
</dl>
</li>
</ul>
<a name="setGeometry">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGeometry</h4>
<pre>public  setGeometry(ax: Int32, ay: Int32, aw: Int32, ah: Int32): Unit</pre>
<div class="block">The Function is setGeometry</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>ax</code> - of Int32</dd>

<dd><code>ay</code> - of Int32</dd>

<dd><code>aw</code> - of Int32</dd>

<dd><code>ah</code> - of Int32</dd>
</dl>
</li>
</ul>
<a name="setFont">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFont</h4>
<pre>public  setFont(font: QFont): Unit</pre>
<div class="block">The Function is setFont</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>font</code> - of QFont</dd>
</dl>
</li>
</ul>
<a name="setStyleSheel">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStyleSheel</h4>
<pre>public  setStyleSheel(styleSheet: String): Unit</pre>
<div class="block">The Function is setStyleSheel</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>styleSheet</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setWindowIcon">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWindowIcon</h4>
<pre>public  setWindowIcon(icon: QIcon): Unit</pre>
<div class="block">The Function is setWindowIcon</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>icon</code> - of QIcon</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Unit </dd>
</dl>
</li>
</ul>
<a name="rect">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rect</h4>
<pre>public  rect(): QRect</pre>
<div class="block">The Function is rect</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>QRect Type of  QRect</dd>
</dl>
</li>
</ul>
<a name="repaint">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>repaint</h4>
<pre>public  repaint(): Unit</pre>
<div class="block">The Function is repaint</div>
<dl>
</dl>
</li>
</ul>
<a name="delete">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delete</h4>
<pre>public  delete(): Unit</pre>
<div class="block">The Function is delete</div>
<dl>
</dl>
</li>
</ul>
<a name="setPaintEvent">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPaintEvent</h4>
<pre>public  setPaintEvent(callback: (QPaintersEvent)->Unit): Unit</pre>
<div class="block">The Function is setPaintEvent</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>callback</code> - of (QPaintersEvent)->Unit</dd>
</dl>
</li>
</ul>
<a name="setMousePressEvent">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMousePressEvent</h4>
<pre>public  setMousePressEvent(callback: (QMouseEvent)->Unit): Unit</pre>
<div class="block">The Function is setMousePressEvent</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>callback</code> - of (QMouseEvent)->Unit</dd>
</dl>
</li>
</ul>
<a name="setMouseReleaseEvent">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMouseReleaseEvent</h4>
<pre>public  setMouseReleaseEvent(callback: (QMouseEvent)->Unit): Unit</pre>
<div class="block">The Function is setMouseReleaseEvent</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>callback</code> - of (QMouseEvent)->Unit</dd>
</dl>
</li>
</ul>
<a name="setMouseMoveEvent">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMouseMoveEvent</h4>
<pre>public  setMouseMoveEvent(callback: (QMouseEvent)->Unit): Unit</pre>
<div class="block">The Function is setMouseMoveEvent</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>callback</code> - of (QMouseEvent)->Unit</dd>
</dl>
</li>
</ul>
<a name="setKeyPressEvent">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeyPressEvent</h4>
<pre>public  setKeyPressEvent(callback: (QKeyEvent)->Unit): Unit</pre>
<div class="block">The Function is setKeyPressEvent</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>callback</code> - of (QKeyEvent)->Unit</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>


</body>
</html>
